using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
namespace Tongiao.Entity
{
                

     public class Tg_LocaImgEntity:AF_ORM.CORE.BaseEntity
    {
         public Tg_LocaImgEntity()
         {
             tableName = "Tg_LocaImg";


			 fieldInfos.Add(new FieldInfo("Tg_LocaImg","CreatedBy","CreatedBy","string",512,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("Tg_LocaImg","CreatedDate","CreatedDate","DateTime",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("Tg_LocaImg","Id","Id","Guid",0,true,false,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("Tg_LocaImg","IdLocation","IdLocation","Guid",0,false,false,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("Tg_LocaImg","Photo","Photo","string",512,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("Tg_LocaImg","UpdatedBy","UpdatedBy","string",512,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("Tg_LocaImg","UpdatedDate","UpdatedDate","DateTime",0,false,true,false,false,"","",""));
         }
       //properties
                    
		 protected string m_CreatedBy;
		 protected DateTime m_CreatedDate;
		 protected Guid m_Id;
		 protected Guid m_IdLocation;
		 protected string m_Photo;
		 protected string m_UpdatedBy;
		 protected DateTime m_UpdatedDate;

		 public string CreatedBy

          { 
                get { 
                    return m_CreatedBy;}

                set{m_CreatedBy=value;

                    GetField("CreatedBy").Set();
                    GetField("CreatedBy").IsNull=(value == null);           
                    }
          }
		 public DateTime CreatedDate

          { 
                get { 
                    return m_CreatedDate;}

                set{m_CreatedDate=value;

                    GetField("CreatedDate").Set();
                    GetField("CreatedDate").IsNull=(value == null);           
                    }
          }
		 public Guid Id

          { 
                get { 
                    return m_Id;}

                set{m_Id=value;

                    GetField("Id").Set();
                    GetField("Id").IsNull=(value == null);           
                    }
          }
		 public Guid IdLocation

          { 
                get { 
                    return m_IdLocation;}

                set{m_IdLocation=value;

                    GetField("IdLocation").Set();
                    GetField("IdLocation").IsNull=(value == null);           
                    }
          }
		 public string Photo

          { 
                get { 
                    return m_Photo;}

                set{m_Photo=value;

                    GetField("Photo").Set();
                    GetField("Photo").IsNull=(value == null);           
                    }
          }
		 public string UpdatedBy

          { 
                get { 
                    return m_UpdatedBy;}

                set{m_UpdatedBy=value;

                    GetField("UpdatedBy").Set();
                    GetField("UpdatedBy").IsNull=(value == null);           
                    }
          }
		 public DateTime UpdatedDate

          { 
                get { 
                    return m_UpdatedDate;}

                set{m_UpdatedDate=value;

                    GetField("UpdatedDate").Set();
                    GetField("UpdatedDate").IsNull=(value == null);           
                    }
          }

}
}
